package com.pray.praymall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 2级分类vo
 *
 * @author 魂悸魄
 * @date 2020/9/14 10:45
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Catalog2Vo {
    /**
     * 1级父分类id
     */
    private String catalog1Id;

    /**
     * 三级子分类
     */
    private List<Catalog2Vo.Catalog3Vo> catalog3List;

    private String id;

    private String name;

    /**
     * 三级分类vo
     *
     * @author 魂悸魄
     * @date 2020/9/14 10:49
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Catalog3Vo {
        // 分分类id，二级分类id
        private String catalog2Id;

        private String id;

        private String name;
    }

}
